{extend name="base" /}
{block name="content"}
<div class="m-b-md">
    <h2 class="m-b-none">货品编辑</h2>
</div>
<form class="form-horizontal" id="form" action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            {foreach name="specData" item="v"}
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">{$v['taname']}</label>
                    <div class="col-sm-3">

                        <select class="form-control" name="combine[]" readonly>
                            {foreach name=" $oldData['combine']" item="vv"}
                            <option value="" >{$vv['gtvalue']}</option>
                            {/foreach}
                        </select>

                    </div>
            </div>
{/foreach}
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">库存</label>
                <div class="col-sm-9">
                    <input type="number" name="stock" value="{$oldData['stock']}" value="0" min="0">
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">货号</label>
                <div class="col-sm-9">
                    <input type="text" name="glnumber" value="{$oldData['glnumber']}">
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="gid" value="{:input('param.gid')}" placeholder=""/>
    <button class="btn btn-primary" type="submit">确定提交</button>
</form>
{/block}